php forum
php mysql forum
php mysql smarty
 
Topic Options
#278205 - 08/15/04 03:39 PM Finished-[6.3-6.4-6.5] Time-Offset Support for IIP Index Page
Twisty Offline
Code Monkey

Registered: 09/26/03
Posts: 524
Mod Name / Version: Time-Offset Support for IIP Index Page <br /> <br />Description: This adds time-offset support for those who have IIP installed. 'News' posts will now display the correct time for registered users. ie. the same time that is displayed for them on the message boards. <br /> <br />NOTE: This modification is *only* for those who specifically have their news section set to 'disable cache' in the IIP configuration settings. ie '0' in the box where it states... <br /> <br />"Should we cache this information to decrease page generation times? <br />If so, how many minutes should lapse before updating? ( 0 disables ) <br /> (this option used only when force public is turned on above)" <br /> <br />...otherwise it will simply have no effect. <br /> <br /> <br />Working Under: UBB.Threads 6.3-6.4-6.5 <br /> <br />Mod Status: Finished <br /> <br />Any pre-requisites: IIP Installed <br /> <br />Author(s): Twisty <br /> <br />Date: 08/15/04 <br /> <br />Credits: <br /> <br />Files Altered: pals/newspal.php <br /> <br />New Files: <br /> <br />Database Altered: no <br /> <br />Info/Instructions: In newspal.php <br /> <br /> <br />1-A) CHANGE THIS: <br /> <br />
Code:
   $date = $html -&gt; get_date();
<br /> <br />TO THIS: <br /> <br />
Code:
// ----------------- <br />// Get the user info <br />   $userob = new user; <br />   $user = $userob -&gt; authenticate("U_TimeOffset"); <br />   $Username = $user['U_Username']; <br />   $toffset = ""; <br />   isset($user['U_TimeOffset']) &amp;&amp; $toffset = $user['U_TimeOffset']; <br />   $date = $html -&gt; get_date();
<br /> <br /> <br />1-B) CHANGE THIS: <br /> <br />
Code:
							$date = $html -&gt; convert_time($palPosted);
<br /> <br />TO THIS: <br /> <br />
Code:
							$date = $html -&gt; convert_time($palPosted,$toffset);
<br /> <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
_________________________
Twisty []http://www.mameworld.info/misc/nana2.gif[/]
MAMEWorld

Top



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks